<template>
  <div>
    <ind-header />
    <div class="center">
      <!-- 顶部 -->
      <div class="title">
        <div class="title-left">
          <p>我的购物车</p>
        </div>
        <div class="title-right">
          <p>
            已选商品（不含运费）<span>￥909.00</span
            ><button>结 &nbsp;算</button>
          </p>
        </div>
      </div>
      <!-- 购物车列 -->
      <div class="all">
        <div class="all-one">
          <div class="one-a">
            <input type="checkbox" />全选
            <span>商品信息</span>
          </div>
          <div class="one-b">
            <span>单价</span>
            <span>数量</span>
            <span>金额</span>
            <span>操作</span>
          </div>
        </div>
        <div class="all-two">
          <div class="all-two-a">
            <div class="all-two-c">
              <div class="c-1">
                <input type="checkbox" />
                <div class="c-1-1 t">
                  <img src="/favicon.ico" alt="" />
                </div>
                <div class="c-1-2 t">
                  <span
                    >银鹭银鹭银鹭银鹭银鹭银鹭银鹭银鹭银鹭银鹭银鹭银鹭银鹭银鹭银鹭</span
                  >
                </div>
              </div>
              <div class="c-2">￥<span>4399.00</span></div>
              <div class="c-3">
                <div>
                  <button>-</button><input type="text" /><button>+</button>
                </div>
              </div>
              <div class="c-4">
                <div>￥<span>1999.00</span></div>
              </div>
              <div class="c-5"><span>删除</span></div>
            </div>
          </div>
          <div class="all-two-a">
            <div class="all-two-c">
              <div class="c-1">
                <input type="checkbox" />
                <div class="c-1-1 t">
                  <img src="/favicon.ico" alt="" />
                </div>
                <div class="c-1-2 t">
                  <span
                    >银鹭银鹭银鹭银鹭银鹭银鹭银鹭银鹭银鹭银鹭银鹭银鹭银鹭银鹭银鹭</span
                  >
                </div>
              </div>
              <div class="c-2">￥<span>4399.00</span></div>
              <div class="c-3">
                <div>
                  <button>-</button><input type="text" /><button>+</button>
                </div>
              </div>
              <div class="c-4">
                <div>￥<span>1999.00</span></div>
              </div>
              <div class="c-5"><span>删除</span></div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import IndHeader from "@/components/IndHeader.vue";
export default {
  components: { IndHeader },
};
</script>

<style lang="scss" scoped>
.center {
  width: 1440px;
  margin: 0 auto;
  font-family: "宋体";
}
// 顶部
.title {
  margin: 0 auto;
  width: 990px;
  height: 70px;
  display: flex;
  justify-content: space-between;
  line-height: 68px;
  border-radius: 25px 25px 0 0;
  border-bottom: 1px solid cadetblue;
  // 左侧
  .title-left {
    width: 250px;
    height: 100%;
    margin-left: 20px;
    font-weight: bold;
    p {
      font-size: 20px;
      span {
        font-size: 20px;
      }
    }
  }
  // 右侧
  .title-right {
    width: 330px;
    height: 100%;
    span {
      margin-right: 10px;
      position: relative;
      top: 3px;
      font-size: 22px;
      color: red;
      font-family: initial;
    }
    button {
      width: 80px;
      height: 40px;
      background-color: #ad6e3f;
      border: 0;
      border-radius: 25px;
      color: white;
      font-size: 16px;
      line-height: 38px;
      &:active {
        opacity: 0.5;
      }
    }
  }
}
.all {
  margin: 10px auto;
  width: 990px;
  border-radius: 10px;
  background-color: #eee;
  .all-one {
    width: 100%;
    height: 50px;
    background-color: white;
    display: flex;
    justify-content: space-between;
    line-height: 48px;
    input {
      margin: 0 2px 0 20px;
    }
    .one-a > span {
      margin-left: 80px;
    }
    .one-b {
      :first-child {
        margin-right: 130px;
      }
      :nth-of-type(n + 2) {
        margin-right: 100px;
      }
      :last-child {
        margin-right: 90px;
      }
    }
  }
  .all-two {
    padding-bottom: 10px;
  }
  // 商品列 店铺
  .all-two-a {
    margin: 0 auto;
    width: 940px;
    height: 150px;
    margin-top: 10px;
    background-color: white;
    border-radius: 0 0 20px 20px;
    box-shadow: 0px 0px 5px #ccc;
    .all-two-c {
      width: 100%;
      height: 120px;
      display: flex;
      .c-1 {
        justify-content: space-between;
        align-items: center;
        width: 400px;
        height: 100%;
        display: flex;
        .t {
          margin: 18px 0 0 0;
        }
        input {
          margin: 0 10px 0 20px;
        }
        .c-1-1 {
          width: 120px;
          height: 80px;
          margin-right: 4px;
          border: 1px solid black;
          > img {
            width: 100%;
            height: 100%;
          }
        }
        .c-1-2 {
          width: 200px;
          height: 60px;
          margin-left: 10px;
        }
      }
      .c-2 {
        width: 135px;
        height: 100%;
        padding-top: 18px;
        font-weight: bold;
        span {
          margin-left: 3px;
          font-size: 16px;
          line-height: 80px;
        }
      }
      .c-3 {
        width: 135px;
        height: 100%;
        margin-top: 6px;
        text-align: center;
        div {
          margin-top: 26%;
        }
        input {
          width: 30%;
          height: 30px;
          font-size: 1.2em;
          position: relative;
          top: -5px;
          border: 1px solid #fff0e7;
        }
        button {
          border: none;
          background-color: transparent;
          font-size: 30px;
          width: 20px;
          height: 30px;
          background-color: #fff0e7;
          &:active {
            opacity: 0.5;
          }
        }
      }
      .c-4 {
        width: 135px;
        height: 100%;
        text-align: center;
        font-family: "微软雅黑";
        color: #ad6e3f;
        div {
          margin: 18px;
          span {
            font-size: 18px;
            line-height: 80px;
          }
        }
      }
      .c-5 {
        width: 135px;
        height: 100%;
        line-height: 80px;
        padding: 18px 0 0 20px;
        span {
          padding: 10px 16px;
          border: 1px solid red;
          border-radius: 20px;
          color: red;
          user-select: none;
          cursor: pointer;
          &:active {
            opacity: 0.5;
          }
        }
      }
    }
  }
}
</style>
